import request from '@/utils/http'

export const login = (account, password) => {
  return request.post("login", {account, password}, {
    headers: {
      "Content-Type": "application/json"
    }
  })
}

export const refresh = refresh_token => {
  return request.get("refresh", {
    params: {refresh_token}
  })
}

export const test = () => {
  return request.get("test")
}